@include('admin.header')
<style>
  .search_product {
    max-height:248px;
    overflow-y: scroll;
  }
  .search_product > .item {
    width:80px;
    margin-right:5px;
    float:left;
  }
  .search_product > .item img {
    height:80px;
  }
  .search_product > .item .name {
    height:20px;
    overflow:hidden;
  }

  .order_info {
    display: block;
    margin-top: 5px;
  }
  .line {
    border: 3px dashed #ccc;
    margin-top: 10px;
    margin-bottom: 20px;
  }
</style>
<div class="margin-top-20">
  <form method="get" class="form-horizontal js-ajax-form" action="" novalidate="novalidate" enctype ="multipart/form-data">
    <fieldset>
      @if($data)
        <!-- 全球钱包可用 -->
        <div class="control-group"><label class="control-label">
          <a href="#" class="purse_type" _id="" purse_type="hl">
            全球钱包可用
          </a>
        </label>
          <div class="controls">
            <span class="order_info">{{$data['HlUsableBalance'] or '0'}}元</span>
          </div>
        </div>
      <!-- 储值钱包可用 -->
      <div class="control-group"><label class="control-label">
          <a href="#" class="purse_type" _id="" purse_type="shop">
            储值钱包可用
          </a>
        </label>
        <div class="controls">
          <span class="order_info">{{$data['ShopUsableBalance'] or '0'}}元</span>
        </div>
      </div>
      <!-- GA钱包可用 -->
      <div class="control-group"><label class="control-label">
          <a href="#" class="purse_type" _id="" purse_type="pe">
            GA钱包可用
          </a>
        </label>
        <div class="controls">
          <span class="order_info">{{$data['PeUsableBalance'] or '0'}}个</span>
        </div>
      </div>
      <!-- 浩联钱包可用 -->
      <div class="control-group"><label class="control-label">
          <a href="#" class="purse_type" _id="" purse_type="ga">
            浩联钱包可用
          </a>
        </label>
        <div class="controls">
          <span class="order_info">{{$data['GaUsableBalance'] or '0'}}元</span>
        </div>
      </div>
      <!-- 幸运钱包可用 -->
      <div class="control-group"><label class="control-label">
          <a href="#" class="purse_type" _id="" purse_type="luck">
            幸运钱包可用
          </a>
        </label>
        <div class="controls">
          <span class="order_info">{{$data['LuckUsableBalance'] or '0'}}元</span>
        </div>
      </div>
      <!-- 公益钱包可用 -->
      <div class="control-group"><label class="control-label">
          <a href="#" class="purse_type" _id="" purse_type="public">
            公益钱包可用
          </a>
        </label>
        <div class="controls">
          <span class="order_info">{{$data['PublicUsableBalance'] or '0'}}元</span>
        </div>
      </div>
      <!-- 消费贷可用 -->
      <div class="control-group"><label class="control-label">
          <a href="#" class="purse_type" _id="" purse_type="credit">
            消费贷可用
          </a>
        </label>
        <div class="controls">
          <span class="order_info">{{$data['CreditUsableBalance'] or '0'}}元</span>
        </div>
      </div>
      <!-- 消费贷总额度 -->
      <div class="control-group"><label class="control-label">
          <a href="#" _id="">
            消费贷总额度
          </a>
        </label>
        <div class="controls">
          <span class="order_info">{{$data['CreditTotalQuota'] or '0'}}元</span>
        </div>
      </div>
      <!-- 消费贷临时额度 -->
      <div class="control-group"><label class="control-label">
          <a href="#" _id="">
            消费贷临时额度
          </a>
        </label>
        <div class="controls">
          <span class="order_info">{{$data['CreditTempQuota'] or '0'}}元</span>
        </div>
      </div>
    @endif
      <input type="hidden" name="node_id" value="{{$node_id}}" />
    </fieldset>
    <!-- 查看流水信息 -->
   <!--  <div class="form-actions">
      <button type="text" class="btn btn-primary show_trans">查看流水信息</button>
    </div> -->
  </form>
</div>

<script>
  $(function () {
    //查看流水信息
    $('.purse_type').click(function() {
      var node_id = $("input[name='node_id']").val();
      var type = $(this).attr('purse_type');
      open_iframe_layer('/ucenter/user_transfer?node_id='+node_id+'&type='+type);
    });
  });
</script>